package com.xr.sunnyday.dao;

import com.github.pagehelper.Page;
import com.xr.sunnyday.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SetMealDao {
    public Page<Setmeal> findByCondition(String queryString);

    void add(Setmeal setmeal);

    void addSetMealCheckGroup(@Param("setMealId") Integer setMealId,@Param("checkGroupId") Integer checkGroupId);

    Setmeal findBySetMealId(int setMealId);

    List<Integer> findSetMealCheckGroup(int setMealId);

    void update(Setmeal setmeal);

    void deleteCheckGroupSetMeal(Integer id);

    void delete(int id);

    List<String> findImgs();

    List<Setmeal> findAll();

    Setmeal findDetailById(int id);

    List<Map<String, Object>> findSetmealCount();
}
